package com.fzj.example.collection;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;

/**
 * ClassName: MyMap
 * date: 2019/10/15 15:37
 * Description: TODO
 *
 * @author fanzj@bonree.com
 * @since JDK 1.8
 */
public class MyMap {
    public static void main(String[] args) {
        Map<String,Object> hashMap=new HashMap<>();
        Object obj=new Object();
        System.out.println(obj.hashCode());
        int h;
        int a=(h=obj.hashCode())^(h>>>16);
        System.out.println(a);
        System.out.println(14|14>>>1);


        Map<String,Object> hashMap2=new HashMap(14);
        Map<String,Object> hashMap3=new HashMap(13);

        hashMap.put("a1",new Object());
        hashMap.put("a2",new Object());
        hashMap.put("a3",new Object());
        hashMap.put("a4",new Object());
        hashMap.put("a5",new Object());
        hashMap.put("a6",new Object());
        hashMap.put("a7",new Object());
        hashMap.put("a8",new Object());
        hashMap.put("a9",new Object());
        hashMap.put("a10",new Object());
        hashMap.put("a11",new Object());
        hashMap.put("a12",new Object());
        hashMap.put("a13",new Object());
        hashMap.put("a",new Object());


    }
}
